home *** CD-ROM | disk | FTP | other *** search
/ Windows Expert / Windows Expert.iso / others / fontinfo.zip / FONTINFO < prev   
Text File  |  1992-03-16  |  9KB  |  300 lines

  1. HOW TO GET YOUR HOME-MADE POSTSCRIPT (TYPE 1) FONTS TO WORK IN
  2. WORDPERFECT WITHOUT TEARS
  3.  
  4. (Version 2 March 15 1992)
  5.  
  6.  
  7. For new information, please see the additional file, add1
  8.  
  9.  
  10.  
  11.      A number of programs (i.e. CorelDraw and Fontgrapher) allow
  12. you to make your own PS1 fonts. Unfortuantly, having a set of
  13. homemade typefaces and using them are two different
  14. things...until now! (Sounds like I'm going to try and sell a
  15. vaccum cleaner)
  16.  
  17. If you will permit me to develop the above for a moment. Maestro:
  18.  
  19.      * BEFORE, YOU WERE AT THE MERCY OF ADOBE'S INSTALLATION
  20.      PROGRAM TELLING YOU WHAT TYPEFACES YOU COULD AND COULD NOT
  21.      INSTALL!
  22.  
  23.      * IF YOU HAD A NICE HOMEMADE TYPEFACE, AND WANTED TO INSTALL
  24.      IT INTO WORDPERFECT, YOU MIGHT HAVE TO GO SO FAR AS (GASP!)
  25.      USE THE PTR PROGRAM!
  26.  
  27.      * HOMEMADE MODIFICATIONS OF THE WPPS1.ALL FILE LEFT YOU
  28.      SOBBING AS YOU REACHED FOR THE ORIGINAL DISKS FOR TOTAL RE-
  29.      INSTALLATION OF THE POSTSCRIPT DRIVER AND ANY ADOBE FONTS
  30.      LOADED
  31.  
  32.                          WELL NO MORE!
  33.  
  34.  
  35.  
  36. (Sorry...just had to "step out" for a moment...)
  37.  
  38.  
  39. Anyway...how to do it:
  40.  
  41.  
  42. Adobe's installation program is nice (a tad long...) but it has
  43. the annoying habit of only wanting to install Adobe fonts.
  44. (product loyalty or something...) So the trick to installing your
  45. own fonts is to make Installation think they're right out of the
  46. latest pin-up catalog. 
  47.  
  48. There's three files you need that you don't have that will make
  49. Installation go along with you. These three files will, however,
  50. be on any honest-to-goodness Adobe disk. In this example, I'll
  51. pull out my Tekton original disk. There among the .PFM, .PFB, and
  52. .AFM files are: (in order of importance)
  53.  
  54.                TKO_____.INF
  55.                INSTALL .CFG
  56.  
  57.  
  58. These are the all important files. What's nice is that they're
  59. not very long and don't require substantial modification (I'm
  60. sure everything I've written is duplicated somewhere in Adobe's
  61. type specs, but I don't have them)
  62.  
  63. The TKO_____.INF file looks like this:
  64.  
  65. FontName (Tekton-Oblique)
  66. FullName (Tekton Oblique)
  67. AppleName (Tekton Oblique)
  68. AppleFONDID 13101
  69. FamilyName (Tekton)
  70. version (001.001)
  71. isFixedPitch false
  72. CharacterSet (isoadobe)
  73. Encoding (StandardEncoding)
  74. ItalicAngle -8
  75. CapHeight 640
  76. UnderlinePosition -100
  77. UnderlineThickness 50
  78. StemWidth 46
  79. Serif false
  80. Pi false
  81. SuperiorBaseline 260
  82. MSMenuName (Tekton)
  83. VPMenuName (Tekton)
  84. WORDMenuName (Tekton)
  85. VPTypefaceID 1019
  86. VPStyle (I)
  87. PCFileNamePrefix (TKO__)
  88. PCLTypefaceID 20769
  89. PCLStrokeWeight 0
  90. PCLStyle 1
  91.  
  92.  
  93. This is the file that is most crucial to the process of fooling
  94. Installation. 
  95.  
  96. HOWEVER! It is one thing to simply change the names around...but
  97. who's to say that your typeface won't be mangled in the wash
  98. because all the numbers are different...
  99.  
  100. For the purpose of example, I would like to use David Rakowski's
  101. typeface "Dragonwick" which is available in the DTP forum. It's a
  102. lovely 50's "I Love Lucy" typeface and Dave, the cheque's in the
  103. mail.
  104.  
  105. Load the WHATEVER.INF off of your Adobe font disk
  106. into...oh...say...WordPerfect. Now, in ViewDocument, load the
  107. homemade typeface's .PFB file. Dragonwick's looks like this:
  108.  
  109. !PS-AdobeFont-1.0: Dragonwick 001.001
  110. %%CreationDate: 10/12/90 9:45:33 PM 
  111. %%VMusage: 1024 19706
  112.  
  113. % Generated by Fontographer 3.1
  114. % Dragonwick ⌐ 1990 by David Rakowski. All Rights Reserved.
  115. FontDirectory/Dragonwick known{/Dragonwick findfont dup/UniqueID
  116. known{dup
  117. /UniqueID get 4420288 eq exch/FontType get 1 eq and}{pop
  118. false}ifelse
  119. {save true}{false}ifelse}{false}ifelse
  120. 12 dict begin
  121. /FontInfo 9 dict dup begin
  122.  /version (001.001) readonly def
  123.  /FullName (Dragonwick) readonly def
  124.  /FamilyName (Dragonwick) readonly def
  125.  /Weight (Medium) readonly def
  126.  /ItalicAngle 0 def
  127.  /isFixedPitch false def
  128.  /UnderlinePosition -127 def
  129.  /UnderlineThickness 19 def
  130.  /Notice (Dragonwick ⌐ 1990 by David Rakowski. All Rights
  131. Reserved.) readonly def
  132. end readonly def
  133. /FontName /Dragonwick def
  134.  
  135. (Below this there's a lot of garbage which roughly translates as
  136. the actual working machine of the typeface)
  137.  
  138. The information in this file is what you need to modify the
  139. WHATEVER.INF file to get Installation to install it, first of
  140. all, and so that it comes out looking something like the way it
  141. was designed. 
  142.  
  143. First of all, modify the name in the parentheses so that the
  144. beginning of the WHATEVER.INF file looks like this:
  145.  
  146. FontName (Dragonwick)
  147. FullName (Dragonwick)
  148. FamilyName (Dragonwick)
  149. AppleName (Dragonwick)
  150.  
  151. Now the AppleFONDID doesn't seem to mean much to Installation,
  152. but to avoid any sort of conflict, I modified it to say:
  153.  
  154. AppleFONDID 0011 
  155.  
  156. Where 0011 is a made up number (but I'm keeping track of the
  157. numbers and checking them against all packages installed)
  158.  
  159. For the following, it should be kept the same:
  160.  
  161. version (001.001)
  162. isFixedPitch false
  163. CharacterSet (isoAdobe)
  164. Encoding (AppleStandard)
  165.  
  166. Unless you see somewhere in the .PFB file that it says different.
  167. (The Version # changes occasionally...you might want to check
  168. that...it's in the header of the .PFB file)
  169.  
  170. Now, the important stuff: dragon__.pfb says this:
  171.  
  172.  /ItalicAngle 0 def
  173.  /isFixedPitch false def
  174.  /UnderlinePosition -127 def
  175.  /UnderlineThickness 19 def
  176.  
  177. So you modify the WHATEVER.INF file likewise:
  178.  
  179. ItalicAngle 0
  180. CapHeight 762
  181. UnderlinePosition -127
  182. UnderlineThickness 19
  183.  
  184. A Note about the CapHeight: The Number 762 does not appear in the
  185. .PFB file. It is in the .AFM file. ViewDocument the .AFM file of
  186. your homemade typeface and somewhere it will say (on its own
  187. line) the CapHeight. Modify accordingly.
  188.  
  189. The rest of the information:
  190.  
  191. StemWidth 13
  192. Serif true
  193. Pi false
  194. MSMenuName (Dragonwick)
  195. VPMenuName (Dragonwick)
  196. WORDMenuName (Dragonwick)
  197. VPTypefaceID 4420288
  198. VPStyle (N)
  199. PCFileNamePrefix (Dragon__)
  200. PCLTypefaceID 4420288
  201. PCLStrokeWeight 0
  202. PCLStyle 0
  203.  
  204. I have not found an indication anywhere regarding StemWidth or
  205. Serif true or Pi false, but I believe Serif should be modified
  206. according to the type of typeface being installed. Change The
  207. *MenuName () so that the name of the typeface you want to install
  208. is between the ()'s. 
  209.  
  210. The TypefaceID number is in the line
  211.  
  212. /UniqueID get 4420288 eq exch/FontType get 1 eq and}{pop
  213. false}ifelse
  214.  
  215. of the .PFB file. Thus change the WHATEVER.INF file to the new
  216. number as well.
  217.  
  218. Save the new .INF file with EXACTLY the same name as the .PFB
  219. file.
  220.  
  221. Now load the INSTALL.CFG file. It looks like this:
  222.  
  223. (Adobe's Tekton disk) <-- my own line
  224.  
  225. # Installer Configuration File
  226. # Contains package specific information used by the install
  227. program.
  228. #
  229. DISKSIZE 713
  230. FILE INSTALL.CFG 1
  231. FILE README 1
  232. #
  233. # Font entry fields:
  234. # Fontname - PostScript name of the typeface
  235. # Filename - 5 character PC filename base
  236. # Number of the disk this filetype sits on or zero if not
  237. present.
  238. # One entry for each filetype PFB, INF, CTF, ???, ABF, AFM
  239. #
  240. FONT Tekton TKRG_ 1 1 0 0 0 1
  241. FONT Tekton-Oblique TKO__ 1 1 0 0 0 1
  242. FONT Tekton-Bold TKB__ 1 1 0 0 0 1
  243. FONT Tekton-BoldOblique TKBO_ 1 1 0 0 0 1
  244. #
  245. DISKNAME 1 'Font Disk'
  246. #
  247. PKGNAME tekton
  248.  
  249. So I modified it to say this:
  250.  
  251. # Installer Configuration File
  252. # Contains package specific information used by the install
  253. program.
  254. #
  255. DISKSIZE 713
  256. FILE INSTALL.CFG 1
  257. FILE README 1
  258. #
  259. # Font entry fields:
  260. # Fontname - PostScript name of the typeface
  261. # Filename - 5 character PC filename base
  262. # Number of the disk this filetype sits on or zero if not
  263. present.
  264. # One entry for each filetype PFB, INF, CTF, ???, ABF, AFM
  265. #
  266. FONT Dragonwick DRAGON__ 1 1 0 0 0 1
  267. #
  268. DISKNAME 1 'Font Disk'
  269. #
  270. PKGNAME Dragonwick
  271.  
  272. And you make your changes accordingly.
  273.  
  274. NOTE: INSTALL.CFG must stay the same, so save this file to
  275. another disk.
  276.  
  277. Copy the .PFM, .PFB, and .AFM files, as well as the new .INF and
  278. the .CFG file to its own disk.
  279.  
  280. And now! Re-run that pesky Installation program. (make a back-up
  281. of the WPPS1.ALL file first though, just as a precaution) When it
  282. says "Insert Font Disk" put that new disk in the drive. It will
  283. ask what fonts it should install, and if everything goes well (as
  284. it has for me so far...) it will copy it to your PSFONTS
  285. directory and you go into WordPerfect and select it from the
  286. SoftFonts menu.
  287.  
  288.  
  289.  
  290. DISCLAIMER: It works for me. I'm not you. 
  291.  
  292. Adobe, PostScript, Tekton are trademarks of Adobe Systems Inc. 
  293. Dragonwick is copyright David Rakowski
  294.  
  295.  
  296. This was written as a public service message only, and is not
  297. intended to infringe on any weird secrets or the like of any
  298. company or their products. 
  299.  
  300.